package com.geek.javase.wcy01;

/**
 * @author wangchaoyang
 * @desc TODO
 * @date 2025/9/1
 */
public class NewTest1 {
        public static void main(String[] args) {

            // 整数类型
            byte age = 25;
            short studentCount = 300;
            int population = 1000000;
            long distanceInMeters = 15000000000L;

            // 浮点类型
            float height = 1.75f;
            double weight = 72.5;

            // 字符类型
            char grade = 'A';

            // 布尔类型
            boolean isStudent = true;       // 只有true和false两个值

            // 标识符命名示例（驼峰命名法：首个单词小写，后续单词首字母大写）
            String userName = "john_doe123";
            int maxAttempts = 3;
            final double PI_VALUE = 3.14159;
            System.out.println("年龄: " + age);
            System.out.println("学生数量: " + studentCount);
            System.out.println("距离（米）: " + distanceInMeters);
            System.out.println("身高（米）: " + height);
            System.out.println("体重（千克）: " + weight);
            System.out.println("成绩等级: " + grade);
            System.out.println("是否为学生: " + isStudent);
            System.out.println("圆周率值: " + PI_VALUE);
        }
    }

